package com.jumi.microservice.service.invoice.invoiceConfig;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@Component
@RefreshScope
public class InvoiceConfig {
    //企业税号
    @Value("${invoice.ein}")
    private String ein;
    @Value("${invoice.identity}")
    private String identity;
    @Value("${invoice.sendUrl}")
    private String sendUrl;
    @Value("${invoice.queryUrl}")
    private String queryUrl;
    @Value("${invoice.voidInvoice}")
    private String voidInvoice;
    @Value("${invoice.redInvoice}")
    private String redInvoice;

    public String getEin() {
        return ein;
    }

    public void setEin(String ein) {
        this.ein = ein;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getSendUrl() {
        return sendUrl;
    }

    public void setSendUrl(String sendUrl) {
        this.sendUrl = sendUrl;
    }

    public String getQueryUrl() {
        return queryUrl;
    }

    public void setQueryUrl(String queryUrl) {
        this.queryUrl = queryUrl;
    }

    public String getVoidInvoice() {
        return voidInvoice;
    }

    public void setVoidInvoice(String voidInvoice) {
        this.voidInvoice = voidInvoice;
    }

    public String getRedInvoice() {
        return redInvoice;
    }

    public void setRedInvoice(String redInvoice) {
        this.redInvoice = redInvoice;
    }
}
